-- GENERATED SPELL FOR [Holdout Technician] --


function spell0_6407(pUnit, Event) --@Bomb,n/a--
pUnit:FullCastSpellOnTarget(8858,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6407', 2000, 1)
end

function spell1_6407(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6407', 528, 1)
end

function Sorts_6407(pUnit, Event)
local choix_sorts_6407 = math.random(0, 1)
if choix_sorts_6407 == 0 then
pUnit:RegisterEvent('spell0_6407', 1, 1)
end
if choix_sorts_6407 == 1 then
pUnit:RegisterEvent('spell1_6407', 1, 1)
end
end

function mob6407_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6407', math.random(1500, 3000), 1)
end

function mob6407_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6407_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6407_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6407, 1, 'mob6407_Action')
RegisterUnitEvent(6407, 2, 'mob6407_Leave')
RegisterUnitEvent(6407, 3, 'mob6407_Kill')
RegisterUnitEvent(6407, 4, 'mob6407_Die')
